﻿using MasterMasterMode.Common.Systems;
using Terraria;
using Terraria.ModLoader;

namespace MasterMasterMode.Common.GlobalNPCs
{
    public class InvasionNPC : GlobalNPC
    {
        public override void EditSpawnRate(Player player, ref int spawnRate, ref int maxSpawns)
        {
            if (InvasionSystem.ArmyofwarriorgoldfishesUp && Main.invasionX == Main.spawnTileX)
            {
                spawnRate = 100;
                maxSpawns = 10000;
            }
        }
    }
}
